﻿
namespace WeixinSDK.Message
{
    /// <summary>
    /// 回复文本消息
    /// </summary>
    public sealed class ResText : ResData
    {
        public ResText(string content)
        {
            Content = content;
        }

        /// <summary>
        /// [必需]回复的消息内容（换行：在content中能够换行，微信客户端就支持换行显示）
        /// </summary>
        public string Content { get; set; }

        public override WxMsgType MsgType
        {
            get { return WxMsgType.text; }
        }

        public override string ToString()
        {
            return Content;
        }

        [System.Runtime.Serialization.OnSerializing]
        private void OnSerializing(System.Runtime.Serialization.StreamingContext sc)
        {
            throw new System.NotSupportedException();
        }
    }
}
